<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
<form name="load_curency" action="index.php" enctype="multipart/form-data" method="post">
	<input name="admin" type="hidden" value="1">
	<input name="module" type="hidden" value="shop">
	<input name="mod" type="hidden" value="curency">
	<input name="act" type="hidden" value="load">
	<input name="referer" type="hidden" value="{ext->get_referer}">
</form>

<form name="child_list" action="index.php" enctype="multipart/form-data" method="post">
<input name="admin" type="hidden" value="1">
<input name="module" type="hidden" value="shop">
<input name="mod" type="hidden" value="curency">
<input name="act" type="hidden" value="mod">
<input name="product_lang" type="hidden" value="{$lang}">
<input name="parent" type="hidden" value="{$smarty.get.product_id}">
<input name="referer" type="hidden" value="{ext->get_referer}">

<table width="100%" cellpadding="0" cellspacing="0" style="border:1px solid #C4CDD2 ">
	<tr>
		<td style="border:1px solid #DBE1E5; padding:5px 5px 0px 5px; background-color:#FFFFFF ">
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="50" bgcolor="#FFFFFF" style="border:1px solid #8CA2B1 ">	
		{ext->class_function class="shop" func="get_curency" assign="curency_list"}
		{ext->countArray array=$curency_list assign="groups_count"}
		{if $groups_count > 0}	
		{foreach from=$curency_list key="curency" item="cost"}
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0" bgcolor="{if $el.parent}#ffffff{else}#F4F6F7{/if}">
				<tr>
					<td height="22" width="70" align="center" style="border-right:1px solid #D6DBDE">{$curency}</td>
					{if $curency == $_var.curency.default}			
						<td style="padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE" onClick="alert('{t t='Ši valiuta yra pagrinė, jos kursas nekeičiamas.'}');"><input type="text" name="{$curency}" value="1" class="defaultInputText" readonly="1"></td>
					{else}
						<td style="padding:0px 0px 0px 10px; border-right:1px solid #D6DBDE"><input type="text" name="{$curency}" value="{$cost}" class="defaultInputText"></td>
					{/if}
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td height="1" bgcolor="#D6DBDE"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				</tr>
			</table>
		{/foreach}
		{if $_var.curency.default == 'LTL'}
			<table width="100%" cellpadding="0" cellspacing="0">
				<tr>
					<td colspan="2" height="22" width="70" align="center" style="border-right:1px solid #D6DBDE">
						<input onClick="doSubmit('load_curency'); return false;" type="button" value="{t t="Sinchronizuoti su Lietuvos banku"}" class="defaultFormButton" style="margin:10px; width:250px;">
					</td>
				</tr>
			</table>
		{/if}
		{else}
			{t t='Nera nei vienos valiutos'}
		{/if}
		</td>		
	</tr>
</table>

		{ext->countArray array=$curency_list assign="groups_count"}
		{if $groups_count > 0}	
		<table cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td bgcolor="#FFFFFF" height="5" width="150">						
				<input onClick="doSubmit('child_list'); return false;" type="button" value="{t t="Išsaugoti pakeitimus"}" class="defaultFormButton" style="margin:10px ">
				</td>		
				<td bgcolor="#FFFFFF" height="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
			</tr>
		</table>
		{/if}
		</td>		
	</tr>
</table>
</form>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>		
	</tr>
</table>
